import 'package:flutter/material.dart';
import 'package:flutter_common_app/widgets/empty_view/h_empty_view.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class PlayAllSongsBar extends StatelessWidget {
  final double bottomRowItemH;
  final int count;

  const PlayAllSongsBar({Key key, this.bottomRowItemH, this.count}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      decoration: BoxDecoration(
        color: Colors.white,
        borderRadius: BorderRadius.only(
          topLeft: Radius.circular(20.w),
          topRight: Radius.circular(20.w),
        ),
      ),
      padding: EdgeInsets.symmetric(horizontal: 20.w),
      height: bottomRowItemH,
      width: 750.w,
      child: Row(
        children: [
          HEmptyView(10.w),
          Icon(
            Icons.play_circle_outline,
            size: 45.w,
            color: Colors.black87,
          ),
          HEmptyView(12.w),
          Text(
            '播放全部',
            style: TextStyle(
                color: Colors.black87,
                fontSize: 28.sp,
                fontWeight: FontWeight.w500),
          ),
          HEmptyView(8.w),
          Text(
            '(共${count}首)',
            style: TextStyle(
              color: Colors.black45,
              fontSize: 22.sp,
            ),
          ),
        ],
      ),
    );
  }

}
